package com.xjie.mall.goods.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjie.mall.goods.model.Brand;
import com.xjie.mall.goods.model.Category;
import org.springframework.cache.annotation.CacheEvict;

import java.util.List;

public interface BrandService extends IService<Brand> {

    /**
     * 条件查询
     * @param brand
     * @return
     */
    List<Brand> queryList(Brand brand);

    /**
     * 条件分页查询
     * @param currentPage
     * @param size
     * @param brand
     * @return
     */
    Page<Brand> queryPageList(Long currentPage, Long size, Brand brand);


    /**
     * 根据分类id查询品牌id列表
     * @param id
     * @return
     */
    List<Brand> queryBrandIds(Integer id);
}
